<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js返回return</title>
    <script>
        function myFunction(x,y)
        {
            return x+y;
        }
    </script>
</head>
<body>
    <p>
        调用函数返回结果：
    </p>
    <p id="demo"></p>
    <script>
        document.getElementById("demo").innerHTML=myFunction(4,3);
    </script>
</body>
</html>